<script setup>
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <div>
    <!-- <el-menu :default-active="$route.path" class="top-nav" mode="horizontal">
      <el-menu-item index="/">
        <router-link to="/">Home</router-link>
      </el-menu-item>
      <el-menu-item index="login">
        <router-link to="/api/login">login</router-link>
      </el-menu-item>
      <el-menu-item index="crud">
        <router-link to="/crud">crud</router-link>
      </el-menu-item>
    </el-menu> -->
    <RouterView />
  </div>
</template>

<style scoped>
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: gray; /* 背景颜色 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}
</style>
